package cn.lyh.gulimall.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
/**
    * 首页轮播广告
    */
@Data
@TableName(value = "sms_home_adv")
public class SmsHomeAdv {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 图片地址
     */
    @TableField(value = "pic")
    private String pic;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Boolean status;

    /**
     * 点击数
     */
    @TableField(value = "click_count")
    private Integer clickCount;

    /**
     * 广告详情连接地址
     */
    @TableField(value = "url")
    private String url;

    /**
     * 备注
     */
    @TableField(value = "note")
    private String note;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 发布者
     */
    @TableField(value = "publisher_id")
    private Long publisherId;

    /**
     * 审核者
     */
    @TableField(value = "auth_id")
    private Long authId;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PIC = "pic";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_STATUS = "status";

    public static final String COL_CLICK_COUNT = "click_count";

    public static final String COL_URL = "url";

    public static final String COL_NOTE = "note";

    public static final String COL_SORT = "sort";

    public static final String COL_PUBLISHER_ID = "publisher_id";

    public static final String COL_AUTH_ID = "auth_id";
}